package com.taixu.apiorder.domain.bo;

import com.taixu.common.core.domain.BaseEntity;
import com.taixu.common.core.validate.AddGroup;
import com.taixu.common.core.validate.EditGroup;
import lombok.Data;
import lombok.EqualsAndHashCode;
import javax.validation.constraints.*;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;

/**
 * 订单业务对象 apiorder
 *
 * @author ximu
 * @date 2023-12-14
 */

@Data
@EqualsAndHashCode(callSuper = true)
public class ApiOrderBo extends BaseEntity {

    /**
     * id
     */
    @NotNull(message = "id不能为空", groups = { EditGroup.class })
    private Long orderId;

    /**
     * 订单号
     */
    private String orderNo;

    /**
     * 车牌号
     */
    private String cph;

    /**
     * 车架号
     */
    @NotBlank(message = "车架号不能为空", groups = { AddGroup.class, EditGroup.class })
    private String vin;

    /**
     * 车辆状态
     */
    private String result;

    /**
     * 订单状态
     */
    @NotNull(message = "订单状态不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long status;

    /**
     * 订单结果
     */
    @NotNull(message = "订单结果不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long resStatus;

    /**
     * 推送结果
     */
    @NotNull(message = "推送结果不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long pushStatus;

    /**
     * 所属key
     */
    @NotBlank(message = "所属key不能为空", groups = { AddGroup.class, EditGroup.class })
    private String bykey;

    /**
     * 创建时间
     */
    @NotNull(message = "创建时间不能为空", groups = { AddGroup.class, EditGroup.class })
    private Date foundTime;

    /**
     * 完成时间
     */
    private Date finishTime;


}
